package lex.netant;

public class SplitFile extends Thread {
	DownloadThread fg;
	Reload rl;

	public SplitFile() {
		rl = new Reload(Utility.getTempFileName() + "." + "tmp");
	}

	public void run() {
		NetAntMainFrame.setStartFalse();
		NetAntMainFrame.setStopTrue();
		// Ӧ��ֱ�ӿ�������߳̿�ʼ����.
		rl.serializeIn();
		String sourceFile = Utility.url;
		// System.out.println(sourceFile);
		String objFile = Utility.getFileName();
		for (int i = 0; i < 5; i++) {
			fg = new DownloadThread(sourceFile, objFile, Utility.nStart[i], Utility.nStop[i], i);
			fg.start();
		}
		// UpdateThread ut=new UpdateThread();
		// ut.start();
	}
}
